﻿using System;
using biz.ritter.javapi.util;
using Nofs.Net.Common.Interfaces.Domain;

namespace Nofs.Net.Common.Interfaces.Cache
{
    public interface IKeyCache
    {
        int CacheSize();
        IKeyIdentifier GetByID(UUID id);//throws Exception;
        IKeyIdentifier GetByReference(Object reference);//throws Exception;
        void Add(IKeyIdentifier key);
        void Remove(IKeyIdentifier key);//throws Exception;
        void Remove(Object reference);//throws Exception;
    }
}
